home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / win_u_z / winlogo.zip / WINLOGO.BAT < prev   
DOS Batch File  |  1992-07-27  |  10KB  |  258 lines

  1. @echo off
  2. goto start
  3.  
  4.                                 WINLOGO.BAT
  5.  
  6.                           Mon  07-27-1992  13:47:38
  7.  
  8.      -------------------------- Start Text --------------------------
  9.  
  10.      PURPOSE:
  11.  
  12.      Windows 3.1 is a MUCH better operating environment than Windows
  13.      3.0.  Microsoft's Windows 3.1 start up logo is quite good, but many
  14.      of us want our very own start up logo for home, office, and network
  15.      use. This text and batch file -- WINLOGO.BAT -- will install and
  16.      instruct you on how to make your very own start up logo for Windows
  17.      3.1.
  18.  
  19.  
  20.      TECHNIQUE:
  21.  
  22.      This text file is written in plain ASCII so that it can easily be
  23.      "read" by a Windows 3.1 word processing program such as "Notepad"
  24.      Or, read from the MS-DOS command line using the command:
  25.  
  26.                           more < WINLOGO.BAT
  27.  
  28.      Run this batch file from the MS-DOS command line (not inside of
  29.      Windows).
  30.  
  31.      WINLOGO.BAT should:
  32.  
  33.      1.   Create a new WIN.COM file called NEWWIN.COM, then
  34.  
  35.      2.   Start Windows 3.1 with a NEW start up logo.
  36.  
  37.  
  38.              
  39.      RUN THIS PROGRAM FROM A: DRIVE:
  40.  
  41.      Before reading further, please stop be sure at least the two (2)
  42.      files in this set:
  43.  
  44.      1.   WINLOGO.BAT
  45.  
  46.      2    VGALOGO.RLE
  47.  
  48.      are copied to a diskette on the A: Drive.
  49.  
  50.      All set?  This program assumes that you have a VGA color monitor.
  51.      If you have another type of monitor, the names of the *.LGO and
  52.      *.RLE files in your directories may be different but will have the
  53.      same extensions (*.LGO *.RLE).  You will need to modify this batch
  54.      file program before you run it. The enclosed file VGALOGO.RLE may
  55.      not work.
  56.  
  57.  
  58.      OK, OK, RUN THE BATCH FILE:
  59.  
  60.      For those of you who want to "try first read later," you can safely
  61.      run this batch program now and see if it works.  If it doesn't
  62.      work, it will NOT change any files on your hard drive. If it works,
  63.      a new file named NEWWIN.COM will be copied to your C:\WINDOWS
  64.      directory and Windows will load with the familiar logo but with a
  65.      -- RED -- background.
  66.  
  67.  
  68.      WINLOGO.BAT PROGRAMMING SECRETS:
  69.  
  70.      WINLOGO.BAT uses copies of the following files:
  71.  
  72.      1.   WIN.CNF      <-- The Windows 3.1 configuration file that
  73.                            defines your system's setup.  It is initiated
  74.                            when you complete your Windows 3.1 SETUP.
  75.                            Located in the C:\WINDOWS\SYSTEM subdirectory
  76.  
  77.      2.   VGALOGO.LGO  <-- The marker file that sets the screen
  78.                            resolution for the logo file.  Located in the
  79.                            C:\WINDOWS\SYSTEM  subdirectory
  80.  
  81.      3.   VGALOGO.RLE  <-- The logo file that is furnished with Windows
  82.                            3.1; this is the one we change.   Located in
  83.                            the C:\WINDOWS\SYSTEM  subdirectory
  84.  
  85.      The command that produces the new *.COM file that loads Windows 3.1
  86.      is very simple and uses the MS-DOS command "COPY"; it is:
  87.  
  88.      COPY       /b         WIN.CNF+VGALOGO.LGO+VGALOGO.RLE      NEWWIN.COM
  89.        |        |              |        |            |            |
  90.        |        |              |        |            |            |
  91.        |        |              |        |            |            |
  92.        |        |                                              
  93.    MS-DOS  binary copy switch       The file set               The new file
  94.  
  95.      The file sequence is important, note the plus (+) signs; this
  96.      allows MS-DOS to create a single *.COM file from three separate
  97.      files.
  98.  
  99.      The start up logo file, is VGALOGO.RLE.  You can use any name for
  100.      this file as long as it ends in the extension *.RLE and it is a
  101.      true *.RLE file.  The enclosed file VGALOGO.RLE -- was -- the
  102.      Windows 3.1 start up screen but was converted to *.BMP format with
  103.      the WINGIF program.  It was then popped into Windows 3.1
  104.      PaintBrush.  The graphic was centered, the background was painted
  105.      red, and the file re-saved with WINGIF as a *.RLE file again.  So
  106.      when you run this batch file successfully, the familiar Windows 3.1
  107.      logo will appear but with a RED not a black background.
  108.  
  109.  
  110.  
  111.      SPECIAL INFORMATION:
  112.  
  113.      Using any switches after the Windows loading command "WIN" such as:
  114.  
  115.                                   WIN /b
  116.  
  117.      to make a BOOTLOG.TXT or any other switch, or just typing
  118.  
  119.                                   WIN :
  120.  
  121.      that's "WIN" with a space ( ) and a colon (:) will prevent ANY
  122.      start up screen from showing.
  123.  
  124.  
  125.      SAMPLE *.RLE LOGO FILES:
  126.  
  127.      There are sample *.RLE files in this file set for you to use when
  128.      you are ready to experiment.  To use one of these *.RLE graphic
  129.      screens just substitute its name for the file called VGALOGO.RLE in
  130.      the command at the bottom of this text file.  The batch file starts
  131.      after the LABEL ":start" everything before that is just plain text.
  132.      Remember only edit this batch file with an ASCII text editor such
  133.      as "Notepad" in Windows 3.1.  Do NOT use the Windows 3.1 programs
  134.      "Write" or "Clipboard" to edit this file.
  135.      
  136.      If you don't like the name NEWWIN.COM for your new Windows 3.1
  137.      loader, pick another name as Windows 3.1 doesn't mind, BUT please
  138.      DON'T USE ** WIN.COM ** !!!
  139.  
  140.      NOTE WELL:
  141.  
  142.            When you make your very own graphic; the file saved as a
  143.            *.RLE file should not be more than 50K in size. Since you
  144.            will have to use a "paint" program such as Windows 3.1
  145.            PaintBrush, the *.BMP file may be 150K but the *.RLE file
  146.            should be less than 50K.  The settings that work for a color
  147.            graphic are:
  148.  
  149.      -----------------  640 x 480 pixels x 16 colors ------------------
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.      ERRORS, HORRORS, ERRORS!:
  157.  
  158.      If something has gone wrong, don't worry this program DOES NOT
  159.      MODIFY ANY EXISTING WINDOWS FILES on the hard drive.  Your original
  160.      WIN.COM is still there and should work just as it has always done.
  161.  
  162.      This batch file looks for the necessary files on the C: drive,
  163.      copies them to a floppy disk in the A: Drive, makes NEWWIN.COM as a
  164.      file in C:\WINDOWS and the starts windows.  All this will work if
  165.      the correct files are in the C:\WINDOWS\SYSTEM.  If they are not,
  166.      the program reports an error and you will have to copy them by hand.
  167.  
  168.      This batch file uses a *** copy *** of WIN.CNF. WIN.CNF is the file
  169.      that creates WIN.COM.  I suggest you take my advice and leave the
  170.      original where it is, run this program from a floppy, and don't
  171.      mess with the original file.
  172.  
  173.  
  174.      MAKING YOUR OWN START UP LOGO:
  175.  
  176.      If after running this batch file you become a convert, then you
  177.      will have to go to the great trouble of finding a shareware program
  178.      that converts the common and ordinary *.PCX and *.BMP files into
  179.      the compressed format (*.RLE) that Microsoft uses to make the start
  180.      up logo screen.   RLE stands for "Run Length Encoding" and is a
  181.      data compression format for graphic files. Amazingly, I know of NO
  182.      commercial graphic file converter program that converts *.PCX,
  183.      *.GIF, *.BMP, etc. files to the *.RLE format. You must use one of
  184.      two shareware programs.  They are:
  185.  
  186.  
  187.      #     Program        File set   Version  Author's CompuServe #
  188.      _______________________________________________________________
  189.  
  190.      1.   Paint Shop Pro  PSP.ZIP     1.0         71355,470
  191.  
  192.      2.   WINGIF       WINGIF.ZIP     1.4         76704,12
  193.  
  194.  
  195.      Both programs can be found on CompuServe in the Microsoft Windows
  196.      New/Advanced Users section(s).  Download WINGIF.ZIP as it is the
  197.      smaller, simpler, and the cheaper to register of the two programs.
  198.      In using WINGIF, save your graphic file to the format "RLE 4." If
  199.      you have trouble finding these programs, search the CompuServe File
  200.      Finder database using the Author's CompuServe Number.
  201.  
  202.  
  203.      UNDOCUMENTED SECRET:
  204.  
  205.      Now, we'll skip ahead to a final idea.  After you decide that you
  206.      like your dandy new start up screen for your home, office, or
  207.      network computer(s), then you may want to make sure that this new
  208.      start up screen stays if you change your Windows 3.1 SETUP.  That
  209.      means that once you are SURE that everything works satisfactorily,
  210.      then copy your new startup graphic to the C:\WINDOWS\SYSTEM
  211.      directory as:
  212.  
  213.                                VGALOGO.RLE
  214.  
  215.      That's right REPLACE the original VGALOGO.RLE that is in that
  216.      directory.  Well, you said you were sure, didn't you?  Now, every
  217.      time you change your Windows 3.1 SETUP,  a new WIN.CNF will be made
  218.      and a new WIN.COM will be generated using your new start up screen.
  219.      Now THAT'S really snappy!
  220.  
  221.      If this program works for you, let me know, if it doesn't, let me
  222.      know.
  223.  
  224.      Yours, for your very own Windows 3.1 start up logo,
  225.  
  226.  
  227.                      John De Palma on CompuServe 76076,571.
  228.  
  229.      -------------------------- END of TEXT -------------------------
  230.  
  231. :start
  232. a:
  233. c:
  234. cd\windows\system
  235. if not exist win.cnf goto error
  236. if exist win.cnf copy c:\windows\system\win.cnf a:\
  237.  
  238. if not exist vgalogo.lgo goto error
  239. if exist vgalogo.lgo copy c:\windows\system\vgalogo.lgo a:\
  240. a:
  241.  
  242. copy /b win.cnf+vgalogo.lgo+vgalogo.rle c:\windows\newwin.com
  243. c:
  244. cd\windows
  245. echo 
  246. newwin
  247. goto tatah
  248. :error
  249. echo 
  250. echo  We are in the wrong directory, sorry, but you will have to do this
  251. echo  manually.
  252. goto end
  253. :tatah
  254. a:
  255. echo 
  256. echo     SUCCESS!!!!
  257. :end
  258.